#include "bsp.h"
#include <stdio.h>
#include <math.h>

int main(void)
{
    BSP_init();

    printf("BUILD ON: %s\r\n", __TIME__ " " __DATE__);
    while (1) {
        printf("[%8u] %.2f Hello, world! sqrt(2) = %lf!\r\n",
            (unsigned int)HAL_GetTick(), 3.14f, sqrt(2));
    
        BSP_ledCtrl(BSP_LED_1, BSP_LED_ON);
        BSP_ledCtrl(BSP_LED_2, BSP_LED_OFF);
        BSP_delay(500U);

        BSP_ledCtrl(BSP_LED_1, BSP_LED_OFF);
        BSP_ledCtrl(BSP_LED_2, BSP_LED_ON);
        BSP_delay(500U);
    }
}
